package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello") //该注解等同于Spring中的@RequestMapping（RequestMethod. GET)
    public String hello(){
        return "Hello SpringBoot";
    }
}
